const utils = {
  getHrefSeachParams() {
    let search = location.search.substring(1);
    if (search) {
        let obj = {}
        let paramsArr = search.split("&")
        paramsArr.forEach(x=>{
            let paramItem = x.split("=")
            obj[paramItem[0]] = paramItem[1]
        })
        return obj
    } else return {};
  },
};
export default utils;
